import { requestClient,requestClientBody } from '#/api/request';

/**
 * 获取全部列表
 */
export async function getAllApi() {
  return requestClient.get('/setting/all');
}

/**
 * 编辑
 */
export async function editApi(key: string, data: any) {
  return requestClientBody.post('/setting/edit?key='+key, {form:data});
}

/**
 * 详情
 */
export async function detailApi(key: string) {
  return requestClient.get('/setting/detail?key='+key);
}